<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>修改密码</title>
		<link rel="stylesheet" href="public/css/front_head.css" />
		<style>
			fieldset {
				border: 1px solid #CCCCCC;
				font-size: 12px;
				width: 350px;
				border-radius: 5px;
			}
			
			th {
				width: 100px;
				height: 40px;
				font-size: 12px;
				text-align: right;
			}
			
			input {
				height: 25px;
				width: 200px;
				border-radius: 5px;
				border:1px solid #CCCCCC ;
			}

			input::-webkit-input-placeholder{ /*WebKit browsers*/
				font-size: 12px;
				padding-left: 10px;
				}
			input::-moz-input-placeholder{ /*Mozilla Firefox*/
				font-size: 12px;
				padding-left: 10px;
			}
			input::-ms-input-placeholder{ /*Internet Explorer*/ 
				font-size: 12px;
				padding-left: 10px;
			}

			#sbm:hover{
				background-color: rgb(60,139,156);
				cursor: pointer;
				color:white;
			}
		</style>
	</head>

	<body style="background-image: url(public/images/bg_text.png); background-repeat: no-repeat;">
		<jsp:include page="header.jsp"></jsp:include>
		<div class="welcome"></div>
		<form id="updateasswordForm"   enctype="multipart/form-data" method="post" action="update_password">
		<div style="margin-left: 32%;margin-top: 50px;">
			<fieldset>
				<legend>修改密码</legend>
				<table>
					<tr>
						<th>原密码：</th>
						<td><input type="password" id="currentpassword" name="oldpassword" placeholder="请输入旧密码" /></td>
					</tr>
					<tr>
						<th>新密码：</th>
						<td><input type="password" id="pass" name="newpassword"placeholder="请输入新密码" /></td>
					</tr>
					<tr>
						<th>确认新密码：</th>
						<td><input type="password" id="password" name="password" placeholder="请确认新密码" /></td>
					</tr>
					<tr>
						<td style="color:red;font-size: 12px;text-align: center" colspan="2">
							<c:if test="${error != null }">
								${error}
							</c:if>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input type="submit" id="sbm"  value="确定" style="margin-left:45%;width:80px;font-size: 12px"/>
						</td>
					</tr>
				</table>
			</fieldset>
		</div>
		</form>
	</body>
</html>